package com.niit.serviceuser.config;

import com.netflix.loadbalancer.WeightedResponseTimeRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration // 相当于 spring-context.xml <beans> <bean></beans>
public class LoadBalanceConfig {

    @Bean
    public WeightedResponseTimeRule randomRule() {
        return new WeightedResponseTimeRule();
    }
}
